package com.gsafety.wellsfort.dao.course;

import com.gsafety.wellsfort.domain.dto.ids.WorkPublishIdDTO;
import com.gsafety.wellsfort.domain.dto.course.WorkPublishQueryDTO;
import com.gsafety.wellsfort.domain.model.course.WorkPublish;
import com.gsafety.wellsfort.domain.vo.WorkPublishVO;

import java.util.List;
import java.util.Map;

public interface WorkPublishDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(WorkPublish record);

    int insertSelective(WorkPublish record);

    WorkPublish selectByPrimaryKey(Integer id);

    WorkPublishVO selectByParamMap(Map<String,Object> paramMap);

    int deleteByParamMap(Map<String,Object> paramMap);

    List<WorkPublishVO> selectByParam(WorkPublishQueryDTO dtoParams);

    int cancelWorkPublish(WorkPublishIdDTO dtoParams);


    int updateByPrimaryKeySelective(WorkPublish record);

    int updateByPrimaryKey(WorkPublish record);

    List<WorkPublish> selectByWorkId(Integer workId);


}